﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Inter.MianShi.BLL;
using Inter.MianShi.Model;

namespace Inter.MianShi.Webfrom.Hander
{
    /// <summary>
    /// Handler1 的摘要说明
    /// </summary>
    public class Handler1 : IHttpHandler
    {
        UsersBll bll = new UsersBll();
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string name = context.Request["name"];
            string pwd = context.Request["pwd"];
            int i = bll.Logindeng(name, pwd);
            context.Response.Write(i);
        }

        public bool IsReusable
        {
            get {
                return false;
            }
        }
      
    }
}